Origin: https://gitlab.freedesktop.org/poppler/poppler/-/commit/
f54b815672117c250420787c8c006de98e8c7408
Bug-Debian: https://bugs.debian.org/
1117046
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2025-43718
Happens with very long pdfsubver strings when compiled with
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto
Gbp-Pq: Name Make-sure-regex-doesn-t-stack-overflow-by-limiting-i.patch
static PDFSubtypeConformance pdfConformanceFromString(const std::string &pdfsubver)
{
- const std::regex regex("PDF/(?:A|X|VT|E|UA)-[[:digit:]]([[:alpha:]]+)");
+ const std::regex regex("PDF/(?:A|X|VT|E|UA)-[[:digit:]]([[:alpha:]]{1,3})");
std::smatch match;
// match contains the PDF conformance (A, B, G, N, P, PG or U)